<?php
namespace backend\controllers;

use Yii;
use yii\web\Controller;
/**
 * Error controller
 */
class ErrorController extends Controller
{
	public function actionIndex(){
		$this->layout = 'alert';
		header('Content-Type:text/html;charset=utf-8');
		$getData = base64_decode(Yii::$app->request->get("get"));
		$dataArr = explode('/',$getData);
		$message = $dataArr[0];
		$url = $dataArr[1];
		$waitTime = $dataArr[2];
		if($url == -1){
			$url = "javascript:history.back(-1)";
		}
		return $this->render('error',['message'=>$message,'url'=>$url,'waittime'=>$waitTime]);
	}
}
